ABC086 C - Traveling
提出
WA
code: python
n = int(input())
t = []
for i in range(n):
t.append(T)
x.append(X)
y.append(Y)
flag = True
for i in range(n):
flag = False
print("No")
break
flag = False
print("No")
break
if (flag):
print("Yes")
解答
code: python
n = int(input())
for i in range(n):
t.append(T)
x.append(X)
y.append(Y)
flag = True
for i in range(n):
if (dt < dis):
flag = False
print("No")
break
if (dis % 2 != dt % 2):
flag = False
print("No")
break
if (flag):
print("Yes")
テーマ
メモ
その地点ごとの距離と時間で判断する
提出
code: python
n = int(input())
for i in range(n):
if dis > time:
print("No")
exit()
if time % 2 != dis % 2:
print("No")
exit()
print("Yes")